image upload and selection working