just call read jpeg. commented stuff.