Added some error handling if the camera (library or camera) is not
defined
Set the height of the image to auto to try and maintain aspect ratio of
images at a fixed width.