BKE_image_ensure_tile_token took only the file name component but used FILE_MAX to limit the input buffer. Split this function in two, one that takes the full path as this is the most common usage and another which takes only the filename. Both now take a string size argument.