Added working sorting by timestamp and auto-refresh on new images