cleanup
inline toPixels and fromPixels implemented for retina
begining iOS rework for retina