adds loop around and image file type filter