Started working on two memory section.

Started working on two memory image storage. Right now the code is not
complete. There are errors still coming up. Need to figure it out and
correct it.