ad-hoc mirroring for integral images