update pygrid view, support seperate line, update uiimage to create gradient image from option string