fixed bug in export images on search page based on view types