"but for some reason the relevant jpg is 'not a valid image file' - help? It's .jpg & 40 KB, so neither of those are the problem..."

Could be something with the name of the file, maybe? I know some places don't like spaces, or "odd" characters in a file name. Just a suggestion.