Fixes a problem with unionImage.pl when image comes from https: URL's

These URL's are used by MAA sites, and so problems that use the unionImage.pl macros fail.  See the [forum discussion](http://webwork.maa.org/moodle/mod/forum/discuss.php?d=2920) for details.