create basic camera function