Fix spelling issue in constant when checking image already existed