fixes firefox 29 not working with the camera button

when the video is created, the dimensions are unknown, this patch samples them only once we hit "take photo" so that they're guaranteed correct.