added retina function in elements and added new pattern