Fixing getPageImage to include also images from DAM