check reading from used classes after using ImageSize, close only IO instances