resize the source images