Added filtering of images in gallery