Methods for calculation size of image was moved to schematic.cpp