Fixes: U4-3840 MediaPicker doesn't show images when there are also folders inside of the folder being viewed

and moves some of the util classes into their own files, adjusted media picker's icon sizes too to make it more readable.