Added possibility of configuring width,height,fps and duration when instantiating camera