edited to change to generic camera input