First pass at saving images to a database