You could request the service provider to install the module for you (maybe change providers if they won't), or you could get the
Image::Size 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).