handle case where image file has SVG data