Support for local inages

This small change will recognise an image in local cache without trying to pull it. Useful for development/debugging.