timer and imagepicker