Update zoom function for image viewer