Pure Ruby dimension measurement for GIF, PNG, JPEG and TIFF images