reduce the size of main image