CLOUDSTACK-6914: Fixed the mentioned issue

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
CLOUDSTACK-5150 - set the template size from source

Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit 883d8f11196e9ca55324bcf075880e077a2d3df3)