fixed bug where checkboxes were getting overwritten everytime new image template is loaded