ofImage: convert image type if it's different than PixelType. Closes #2965