made screenshots nginx friendly
cleaned up open files
fixed some caching bugs