fixed bug with copying color key if surfaces have different format