Decode and show picture in a single thread