some test code added and importing image from a raw C memory