Get image width and height given a file path using minimal dependencies (no need for PIL, libjpeg, libpng, etc)