Added rudimentary image saving ability.