use lockbitmap instead of setpixel