Image extension checker