Added some utility functions for retina