Fix segfault, - need to check that start pixel is inside