Added blob center detection!

and got rid of off-by-one errors