updated code and table relationships to allow for img file insert by
itself and fixed visitor pattern to not use gallery content types.