changed the image upload functionality

Signed-off-by: Anurag <anurag.pattnaik@andolasoft.com>