Write to stderr even in release build if can't open the image file.