Do not use constant memory for large images - Implementing edge response detection