Fix zoom image dimension bug