Make sure that the used pixel format is a Packed32 one