image upload and registration