Implemented a picture constructor which queries for a picture ID and an corresponding exception