Monkey patch convert_img method