fixing bug where there is no image for upload
debuggining images