handle grayscale images in sdl image loading no-rawData path