added error message fo pictures with < 3 dimensions.