fix: #3556675 Small improvement: Check if the image exists, if it does not then throw a not found exception
Closes #3556675