imagepicker completed and app onstart/onstop fixed