Use raspistill and provide some additional error info