More image processing code.  Able to add images to db now