The fact that they're images is irrelevant, so the image functions aren't needed. All that's important is that they're files (in fact, all that's important is that they're accessible by URLs).
As the manual (remember that?) entry for [man]file_get_contents[/man] mentions, it's available only since PHP4.3, so on earlier versions you'd need to write a file_get_contents() function of your own; say, one like that given in the user note at the bottom of that manual page. Or maybe take the hint that the page gives about its similarity to [man]file[/man] and use join('',file('URL'));.
Get familiar with the manual (and your problem), and next time you'll be able to save yourself an hour and a half. Or eight. Which is nice if things are very important.