added rotation to context and fixed scale