move calendar function to nueditform and fix pdf image bug