Make the go file standalone so that it can be run as a program
Revert "Make the go file standalone so that it can be run as a program"

This reverts commit f40492676460e433a75b70620e1772567624b40b.
Serve only jpg and png files
Update statistics after setting ulimit properly