I am writing my PhD, learning Latex at the same time, and after 130 pages feeling already like a medium-level user

Still, there is something which drives me crazy, and I have no idea why this happens. The spacing (vertical blank space before start of text) is not constant throughout the document. I see it at several places:
*After figures - see attached image showing a case of an extremely large blank space. This happens in some images only, other works fine.
*Before the subsection titles - the spacing is occasionally different for some subsections
*Occasionally between two consecutive text paragraphs, there is more blank space than there should
Anybody has a clue why this happens and if there is some way to fix it? It does not look professional now...
In case it is relevant, here the Document declaration (used from a template I got):
\documentclass[12pt,a4paper,bibliography=totoc,index=totoc,headsepline,footsepline,plainfootsepline,BCOR12mm,DIV13]{scrbook}
Thank you!!!