Check if JPEG images are progressive
This is an implementation of the Double Buffer design pattern from 'Game Programming Patterns' by Robert Nystrom.