canvas centering fix