Updated the validation of the width and height for the customcert page
Updated the render function in the date element to be compatible with the parent function

Also made use of the function get_grade_items in the class customcert_element_grade to populate the list of items.
Updated the validation of position x and position y for customcert elements