Islamic Design: A Mathematical Approach