rewrote bitmapImageConvert for Processing 2