improved image scaling and masking; switching between releases in viewer