optimizing canvas a bit, scaling