Slight improvement to plane_matrix img scaling