Added imginfo format check