Getting image size from png/jpeg/jpeg2000/gif file. It parses image files header and return image size.