Problem with Write_external_storage >10

You can’t store something to arbitrary directories anymore, see also Some basics on Android storage system

To see the image in the gallery, store it in shared storage and try the GalleryRefresh method from the tools extension

Taifun