Changed pixel types from short to int.