PHOTOWORKS, INC. AND THE PURCHASERS NAMED HEREIN COMMON STOCK AND WARRANT PURCHASE AGREEMENT OCTOBER 5, 2006 PHOTOWORKS, INC. COMMON STOCK AND WARRANT PURCHASE AGREEMENT