small Bug fix in getImage