more bug fix towards making the Image working