Added compressed image support to Image::GetSubimage() and fixed bugs in the function.
For Travis CI - switch CI build to use OS X build environment.