Made image smaller before processing to speed things up