added a zoom argument to set_dotcode and set_xdotcode to determine whether the view returns to center after dotcode generation