Trim avatar and only scale if it's bigger for custom avatar module