save correct image in canvas