Real Time Image processing timing problem