I could definitely emulate those behaviors with LWP::Useragent, but the part I don't understand is where the actual transfer of the image file takes place. Those HTTP requests don't seem to contain anything other than an image ID.
Am I missing something here, or would the the image have to be transfered separately?