Fixed upload.

Allow creating folders.
Pictures are now optimized to view on webpage.