You'd be making a copy just by calling the function, another by displaying it. Ephemeral copies are legio in software and though people have tried I don't think anyone has ruled that those copies are infringing. It's like saying that when you play a CD you are making a copy into the air pressure pattern and thus playing a CD would be infringement.