Have you looked at NextCloud? I have an instance running on an RPi that fits my needs (storage without sharing outside the home firewall). For anything that needs sharing, I just copy those images to an old Dropbox that I’ve kept and share from there.