fixing image format