fixed image zoom and image switching