workaround for image other depth that 1,8,32 in pix_to_qimage
store input directory to settings