removed function for calculating resolution offset -> camera should do this