slowly converting VHDL jpegenc