[Bugfix] Fixed loading non-grayscale images