fixed bug about waiting 3 seconds before take picture