Add image locally and update reference