Change HTML image type