changes image type