Pictures app takes picture and records data using new library methods