Added photo functions
Adds images to database with input[type="file"]