Set the right dpi