Added JImage to replace the $images function. Also made if statement for teacher view so pagebuilder is only used if expert template.