Added method to get copy of pixels in bitmap