add size limit to image template new from upload

rebased original pull request:
https://github.com/aeolusproject/conductor/issues/152