Minor code refactoring - added width and height constants - removed some code duplication
Minor code refactoring
- added width and height constants
- removed some code duplication

dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web