Replaced IMAGE_DIR with lower case variable