added the ability to take pictures by clicking a simple button