refactor and bug fixes to album code including gallery image size, album image scaling