Also, don't pointlessly store JPEGs in an ARGB Cairo surface.
Also, slightly reformat the source code according to clang-format.