hot fix if image.horz_dpi is 0