made image expansion better.