faster image conversion