fixing image types