more VHDL jpeg conversion (slow but sure)