Added touchend to photoButton listener in beginCamera function.