Remove days from the image and change its format