changing image type in front