use less memory in PixmapBitmap constructor