start of jpeg reader