added IE support for image preview