Fixed canvas not updating after resize