changed warning message
checks if image file exists