Gallery now properly detects for images on pages