Fix invalid minimumZoomScale
setImage tests
Fix 64-bit casting warnings