Fixed saveimg to actually work.