added camera functionality and image saving