Changed Img saving.

Images are now stored in vectors and written to harddrive in a seperate
function call.
Fixed an issue in picRating::getpixel