Edited the file selection mode to allow images and directories