Added a preserve_ratio flag to control resize vs crop behaviour
Optimized settings & thumbnail upload directory