and fix Image Undefined error