Sorry, just got back to this!

This is handled - if either regex fails to match then the image isn't resized so the thumbnail is the full image size.  This _should_ never happen though!

I also updated the code to set the ruler units to be pixels.