in reply to creating thumbnails

Maybe not what you're looking for, but why not use Image::Magick, or better yet Image::Thumbnail instead of the system call? AFAIK, `convert` uses the ImageMagick libs too.
--
b10m