corrections to image positioning inside of viewer