fixing image format and size