Throw error on fail to load image