updated picam script. still need to make it work for non v4l cameras