Refactored the filter menu; fixed the bug where the filter
disappeared when you clicked on an image.