Fixed issue with wrong image loaded

Summary: Wrong image could be loaded, now it fixed.
We addidtionally check if there is 20% of free memory
after loading image if there is no - we clear memory cache.

Change-Id: I2062b1eac51875a6755e6b672dcbb5de85e05088