got dialog working, can get file name and image type