added new bitmap funtion