speed up the pyramid gradient using memcpy's. also make it not crash for 1px high...