Huge rewrite

Delete libjpeg, use stb_image instead