fix bug that prevents selection of non-image files