resize template image for load