Use correct image type to fix strange pictures.