change template image size to auto