Split image records into sections and save thumbnail

Change-Id: Iee365023b9418c9e853ab97ac5a9f971edb00004