Parser for image dimensions

Will get much better performance than reading the image using Image
class. Falls back to Image class for unsupported formats.
Better orientation documentation
Now applies EXIF orientation
Fixed possible lock when no messages are in queue
1.0.2