added scale method to Core object

This change concern the addition of a Core.scale() method that apply a global scaling factor to the canvas.