fixed pinch glitch.
updated ios example to work with image.