camera code from cyanogenmod