Add image conversion helper