Removed hardcoded cutoff for pixel size