added image stack to max projection conversion