Prevent snapping picture when not in preview mode
Fix index bug for limit