working with mdal dialog for uploading image