Initial changes for hot fixes in 13w41 :

Modified UserImage.java for the method return point and code position
aligned with database connectivity and assignment

Signed-off-by: Ashish Namdev <ashish28.sirt@gmail.com>
changes for reusable methoda and implementation.

duplicate code was removed for the  singup and login modules along with image upload during singup

Signed-off-by: Ashish Namdev <ashish28.sirt@gmail.com>