Fixed the same bug in getImage