Javascript image resize, crop and re-position tool