added image preview for image upload