Store src/dstFormat after calling handle_jpeg