Add function to align views to pixels