fixed problem with images when editing a page