update image format in post