Introduce gallery mode

In it, the extension will accept images from galleries as candidates for
page images.

Core dependency: I3136d648ef2c1841767db0ab33855cd168e3de3e

Bug: 66510
Change-Id: I64e997d58e4a1b66a8a351d85a3e7df1a77354e9
Merge "Introduce gallery mode"