get image file width, height and format-type in CORONA SDK. Ported from http://luaforge.net/projects/imagesize/