Scale 9 (9 slice) scaling transform for HTML 5 Canvas images