Update image resource.