fixed segfaul in convert.c used to convert pixmaps