Bug fix: use the right function in getImage