How to check if a Docker image already exists?