Refactor images.