Added exception handling for timeseries that are too short
Now ignores pixels with <50% of valid pixels (edges)