Optimization Model for Memory Bandwidth Usage in X-ray Image Enhancement