fix sketching photo problem