Allow custom image conversion