Added some image processing to reduce the size of uploaded images.

Also added some  headings.