checked image loader undefined condition