Accelerating Form Based Image Preprocessing with Digital Hardware