Fixed a bug in how stateless images were being determined