Upload function for uploading images for the members