Added offset flag to imgtogbmap