Gallery JS moved to a class. Added ability to setup field and version of uploaded image