modify images and their formats