Implemented picture taking code