Hi Robby ,
Regarding displaying the uploaded images, you can use - .refresh - for the dataset after uploading the image then the new picture will be displayed on the gallery. For more information about refreshing dataset CHECK THIS
For using upload button with code, please see THIS
Hope this helps!
Best,
Mustafa