add max with for final sprite image