fixed problem where buttons were saved into the picture