framework for images api.  doesn't work
first pass on image uploading