rearrange things in PicAdapter and writing test for it
Merge branch 'master' of https://github.com/CMPUT301F13T08/CMPUT301F13T08.git