Updating image code