Fix for image loading with unknown pixel format.