Lookup object includes indexes
Save lookup object in var
Replace check function by lookup object
Properties are no longer hard coded
Reorder gallery properties

To make the file easier to read
Gallery name is persistent now

Just like the image properties