Tweaked read images to save all variables