You could request the service provider to install the module for you (maybe change providers if they won't), or you could get the
module from CPAN, look at the subroutine "jpegsize", and adapt that code into a subroutine for your script (giving proper credit to the module author of course).