Added some more functionality/style to imagequery.
Added a script/cronjob to clean media/