The graphics of new surface should be initialized while replacing the surface