Added image save function

Work to do to improve the coordinates