add classes to shapes based on type and rotation