Removed expensive call to getImage to extract platform.