How can we refresh image in gallery?

after the SDK30 release you only can refresh images from shared directories…
see also the overview here

did you ask for READ_EXTERNAL_STORAGE permission?

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select “Download Blocks as Image”. You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun