added a bunch of stuff for images.  Not working properly