finishing touches. Added resolution independency