Test component using an image