camera auto submit working with iframe method