Warp images using JavaScript