Image editing and remove reference from edit