improve image zoom when centering