Upload an image using ajax, and update all related images.