added loading to image template
changed image template logic