added support for finding largest image in a page