Default constructor.
The image buffer must be given as an argument, so the camera can extract the image dimensions automatically.