add size limit to image template new from upload

rebased original pull request:
https://github.com/aeolusproject/conductor/issues/152
Merge pull request #338 from jprovaznik/size_check2

add size limit to image template new from upload