debug uploadimage