*GALLERY-IMAGES*: Removed unused global variable.
File split.
Minor cleanups.