fixed button and draw when taking a picture