Adds templated and casting version of Image::getGlobal<>()

Issue: #38