Fixed bug in imageUpload retriver.