plug-ins: simplify the file-jpeg file size displaying code

and display errors returned by g_file_query_info().