updating image format