fractional zoom code clean up an fixes