Dynamically set canvas scale by container width