Fix PIXEL_SIZE calculation.