Chnaged index to 0 based
Added returning of pos/length
Added adapter images