I have created a view in views to show files of type image. Under fields I have selected File Rendered. Now my view is displaying all the images.
The problem is this that I only want to display images which belongs to galleries created through media gallery module.