Protect against use of getImageByID() with incorrect ID