lots of minor improvements and refactors, added exif-based orientation
re-added reloading events periodically