add transformations to graphics. Closes #4