Needs improved error message when invalid image ID is used