fix incorrect image type