Great explanation: Canvas Rotating and Scaling Images Around a Particular Point | Hacker News Reader