Change image format, delte unnecessary images