Some refactoring/reduction of redundant code. PadSnapshotsForAreasOfInterest created.