fix external visibility issue for explicit instantiations of scale_image_agg - ref #2587