Fixed bugs - non-image files open, page position not saved and attribute error