add a new function setImageBitmap to load image from bitmap