improve image scaling performance

generate different scaled versions of uploads and don't delete them on clear-cache
Merge pull request #138 from nsams/image-prescale

improve image scaling performance