Correct x/ymin to avoid segfault due to out of picture reads.