Custom use of camera within electron mm2