fix lock when resizing cairo surface
updated year, added missing gpl block and fixed some formatting
removed some commented/old code