update image stuff.

detect acceptable files