Still trying to fix undefined error for images