Removes hard coded resolution, gets resolution from camera automagically instead.