Fixes image extending beyond view's bounds on zoom