I am looking for some pre-installed gallery software that I can modify for my own commercial requirements

The main requirement is to be able to upload image files by HTML interface, FTP, or email
It is essential that all three options are available