splitting into methods
some cleanup
load default dimentions from settings
changes to gallery pages