removed unused method, refactored image name comparision