Using the traditional camera API to save a captured image