Removed expensive call to getImage.