Added image presence validation